import {lazy} from "react"
let routerList = [
    {
        path:"/login",
        element:lazy(()=>import("../pages/Login"))
    },
    {
        path:"/my",
        element:lazy(()=>import("../pages/My"))
    },
    {
        path:"/detail",
        element:lazy(()=>import("../pages/Detail"))
    },
    {
        path:"/home",
        element:lazy(()=>import("../pages/Home/Home")),
        children:[
            {
                path:"/home/movie",
                element:lazy(()=>import("../pages/Home/Movie"))
            },
            {
                path:"/home/video",
                element:lazy(()=>import("../pages/Home/Video"))
            },
            {
                path:"/home/shortVideo",
                element:lazy(()=>import("../pages/Home/ShortVideo"))
            },
            {
                path:"/home/show",
                element:lazy(()=>import("../pages/Home/Show"))
            },
            {
                from:"/home",
                to:"/home/movie"
            }
        ]

    },
    {
        from:"/",
        to:"/home"
    }

]
export default routerList